module.exports = {
  "*.{js,jsx,ts,tsx}": [
    "sh -c 'eslint --fix || exit 0'", // eslint 失败时不会中断
    "prettier --write"
  ],
  "{!(package)*.json,*.code-snippets,.!(browserslist)*rc}": ["prettier --write --parser json"],
  "package.json": ["prettier --write"],
  "*.vue": [
    "sh -c 'eslint --fix || exit 0'", // eslint 失败时不会中断
    "prettier --write",
    "sh -c 'stylelint --fix || exit 0'" // stylelint 失败时不会中断
  ],
  "*.{scss,less,styl,html}": [
    "sh -c 'stylelint --fix || exit 0'", // stylelint 失败时不会中断
    "prettier --write"
  ],
  "*.md": ["prettier --write"]
};
